package action;

import java.io.IOException;
import java.util.List;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.impl.MeetingDAOImpl;

import bean.Employee;
import bean.Meeting;
import biz.MeetingBiz;
import biz.impl.MeetingBizImpl;

public class MeetingDeleteAction extends HttpServlet {
	private MeetingDAOImpl md = new MeetingDAOImpl();
	
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doPost(request, response);
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		String mid = request.getParameter("mid");
		md.delete(Integer.parseInt(mid));
		response.sendRedirect("meetingsearch.ac");
		
	}
}
